package com.example.task1.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class SubwayRideRecodeBean {
    /**
     * total : 13
     * rows : [{"id":13,"lineId":33,"start":"军事博物馆","stop":"木樨地","price":3,"onTime":"2021-05-09 20:02:02","offTime":"2021-05-09 20:05:23","userId":2,"userName":"test01","createTime":"2021-05-09 20:05:23"}]
     * code : 200
     * msg : 查询成功
     */

    @SerializedName("total")
    private int total;
    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("rows")
    private List<RowsDTO> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<RowsDTO> getRows() {
        return rows;
    }

    public void setRows(List<RowsDTO> rows) {
        this.rows = rows;
    }

    public static class RowsDTO {
        /**
         * id : 13
         * lineId : 33
         * start : 军事博物馆
         * stop : 木樨地
         * price : 3
         * onTime : 2021-05-09 20:02:02
         * offTime : 2021-05-09 20:05:23
         * userId : 2
         * userName : test01
         * createTime : 2021-05-09 20:05:23
         */

        @SerializedName("id")
        private int id;
        @SerializedName("lineId")
        private int lineId;
        @SerializedName("start")
        private String start;
        @SerializedName("stop")
        private String stop;
        @SerializedName("price")
        private int price;
        @SerializedName("onTime")
        private String onTime;
        @SerializedName("offTime")
        private String offTime;
        @SerializedName("userId")
        private int userId;
        @SerializedName("userName")
        private String userName;
        @SerializedName("createTime")
        private String createTime;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getLineId() {
            return lineId;
        }

        public void setLineId(int lineId) {
            this.lineId = lineId;
        }

        public String getStart() {
            return start;
        }

        public void setStart(String start) {
            this.start = start;
        }

        public String getStop() {
            return stop;
        }

        public void setStop(String stop) {
            this.stop = stop;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public String getOnTime() {
            return onTime;
        }

        public void setOnTime(String onTime) {
            this.onTime = onTime;
        }

        public String getOffTime() {
            return offTime;
        }

        public void setOffTime(String offTime) {
            this.offTime = offTime;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }
    }
}
